Tim Deegan [Tue, 17 Oct 2006 10:14:17 +0000 (11:14 +0100)]
[XEN] Heuristic for fast revoke-write-access in HIGHPTE linux guests
This adds a heuristic for speeding up revocation of write access to
pagetables for HIGHPTE linux kernels, which previously had to brute-force
search all L1 shadows.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Tim Deegan [Tue, 17 Oct 2006 10:11:48 +0000 (11:11 +0100)]
[XEN] Don't keep shadows of PAE guest l3 tables.
Holding pages readonly that have guest PAE l3 tables in them means
a performance hit and potential bug if the guest puts other
datastructures on the same page as an l3 table. Instead of shadowing
them, treat PAE guests as if they had four CR3 registers, and load all
four top-level entries when we handle a CR3 write. This also cuts about
500 lines of special-case refcounting and re-copying code.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Tim Deegan [Tue, 17 Oct 2006 10:07:11 +0000 (11:07 +0100)]
[XEN] Don't kill shadowed guest for writing bogus PTEs.
If a guest writes a "bad" pagetable entry and we fail to unshadow the
page, don't kill the guest. This makes the behaviour the same as
if the bad PTE were already in place when we shadowed the page.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 08:59:11 +0000 (09:59 +0100)]
kfraser@localhost.localdomain [Sun, 15 Oct 2006 08:53:20 +0000 (09:53 +0100)]
[XENOPROF] Add a lock around the xenoprof hypercall. It mutates global state.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
kfraser@localhost.localdomain [Sun, 15 Oct 2006 08:52:33 +0000 (09:52 +0100)]
[XENOPROF] Fix limit-check overflow.
Fix code limiting XENOPROF_get_buffer and XENOPROF_set_passive
argument max_samples so that no more than MAX_OPROF_SHARED_PAGES are
used.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
kfraser@localhost.localdomain [Sun, 15 Oct 2006 08:21:49 +0000 (09:21 +0100)]
[SHADOW] Trivial whitespace fix to a couple of printf format strings.
From: Brendan Cully <brendan@cs.ubc.ca>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Sun, 15 Oct 2006 08:19:26 +0000 (09:19 +0100)]
[XEND] Check for and fail on non-existent floppy-drive file when starting HVM guest.
The qemu device model hangs when a non-existent floppy file is passed
via 'fda' or 'fdb'. The attached patch checks whether the floppy file
exists and raises an error if it does not.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kfraser@localhost.localdomain [Sun, 15 Oct 2006 08:15:51 +0000 (09:15 +0100)]
[HVM] Fix PIC IO intercept: addresses are physical, not virtual.
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
kfraser@localhost.localdomain [Fri, 13 Oct 2006 17:04:33 +0000 (18:04 +0100)]
[NET] front: Do not read features from backend until it enters InitWait.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 13 Oct 2006 16:10:27 +0000 (17:10 +0100)]
[NET] back: Simplify probing of new interfaces. There's no need
to watch for creation of the handle node in xenstore, as it is
written by xend when creating the backend directory as part of
the same transaction.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 13 Oct 2006 16:07:39 +0000 (17:07 +0100)]
[NET] front: No need to read handle field from xenstore. It's not used.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@localhost.localdomain [Fri, 13 Oct 2006 09:58:29 +0000 (10:58 +0100)]
[IOEMU] Fix argument to parse_host().
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 12 Oct 2006 16:53:51 +0000 (17:53 +0100)]
[HVM][SVM] Use proper name for the K8 VM_CR MSR.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 12 Oct 2006 15:12:10 +0000 (16:12 +0100)]
[HVM][SVM] Check if SVM is disabled by the BIOS before enabling it.
Newer BIOS implementations will be able to disable the SVM feature,
although an additional test of an MSR (VMCR 0xC0010114 bit 4) is
necessary (set equals disabled). Bit 4 of MSR 0xc0010114 returns 0
(SVM enabled) on machines with older BIOS' without the SVM disable
feature support.
Signed-off-by: Wei Huang <wei.huang2@amd.com>=20
Signed-off-by: Tom Woller <thomas.woller@amd.com>=20
kfraser@localhost.localdomain [Thu, 12 Oct 2006 15:09:15 +0000 (16:09 +0100)]
[NET] back: Copy tx_ring data before verification
We need to make a copy of data from tx_ring before
verifying them as otherwise what we end up using may
be different from what was verified.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
kfraser@localhost.localdomain [Thu, 12 Oct 2006 13:28:59 +0000 (14:28 +0100)]
[HVM] Fix resource leak in error path of AP bringup.
Based on a patch from Kouya Shimura.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 12 Oct 2006 13:27:20 +0000 (14:27 +0100)]
[XEN] Fix booting with dom0_mem specifying 4GB or more.
Signed-off-by: Charles Coffing <ccoffing@novell.com>
kfraser@localhost.localdomain [Thu, 12 Oct 2006 13:25:51 +0000 (14:25 +0100)]
Fix privcmd mmap() on 64b architectures for regions larger than 2GB.
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 12 Oct 2006 13:14:58 +0000 (14:14 +0100)]
Include resources for PV xen-platform device in ACPI DSDT.
From: Qing He <qing.he@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 12 Oct 2006 13:14:12 +0000 (14:14 +0100)]
[HVMLOADER] Remove an unused variable from an SMBIOS function.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 12 Oct 2006 12:55:03 +0000 (13:55 +0100)]
[IA64] Add support for enforcing singleshot mmap() semantics at the
privcmd interface.
From: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 12 Oct 2006 10:44:53 +0000 (11:44 +0100)]
[PRIVCMD] Fix ia64 domain creation by abstracting the singleshot mapping check.
Signed-off-by: Keir Fraser <keir@xensource.com>
Christian Limpach [Thu, 12 Oct 2006 10:26:07 +0000 (11:26 +0100)]
[xenstore] Don't create a transaction for singleton read/write operations.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
Christian Limpach [Thu, 12 Oct 2006 10:25:32 +0000 (11:25 +0100)]
[xenstore] Don't limit the number of concurrent transactions for domain0 connections
since both xend and the xenstore-* utilities used in the hotplug
scripts can easily reach the limit and we trust them anyway.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
Tim Deegan [Thu, 12 Oct 2006 10:08:48 +0000 (11:08 +0100)]
[XEN] Fix race in shadow invlpg
This fixes a crash under mmstress in SMP linux guests, where one vcpu
could remove shadow entries when another was reading them for invlpg.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
kfraser@localhost.localdomain [Thu, 12 Oct 2006 09:56:41 +0000 (10:56 +0100)]
[NET] back: Fix inter-domain networking when using rx-copy path.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 12 Oct 2006 09:38:45 +0000 (10:38 +0100)]
[NET] front: Fix error handling to correctly skip bogus frags.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@localhost.localdomain [Tue, 10 Oct 2006 21:04:01 +0000 (22:04 +0100)]
Revert 11728:
30f13007be. Breaks Solaris guests.
Will need a new method for handling padded gzip files.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 10 Oct 2006 15:02:30 +0000 (16:02 +0100)]
[XEND] Add missing line from changeset 11653:
3b7e11cbeb940
Signed-off-by: Keir Fraser <keir@xensource.com>
Christian Limpach [Tue, 10 Oct 2006 12:48:34 +0000 (13:48 +0100)]
[xend/hotplug] Remove happy gun logging.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
kfraser@localhost.localdomain [Tue, 10 Oct 2006 12:47:09 +0000 (13:47 +0100)]
[NET] back: Fix netif rate limiting.
Signed-off-by: Keir Fraser <keir@xensource.com>
Ian Campbell [Tue, 10 Oct 2006 09:06:56 +0000 (10:06 +0100)]
Correct check for extended-cr3 support in __xen_guest fallback code.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
kaf24@localhost.localdomain [Mon, 9 Oct 2006 22:34:00 +0000 (23:34 +0100)]
[TOOLS] Fixes to miniterm serial terminal utility.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 9 Oct 2006 16:08:18 +0000 (17:08 +0100)]
[NET] back: Refcount fixes to vif rate-limiting code.
Signed-off-by: Keir Fraser <keir@xensource.com>
Tim Deegan [Mon, 9 Oct 2006 15:43:09 +0000 (16:43 +0100)]
[XEN] Zero PAE shadow l3es when destroying subshadows.
Normally, we can leave the contents of shadows in place when we destroy
them, but this is not the case for l3 subshadows, since they do not get
zeroed on reallocation unless the entire l3 page is unshadowed.
This fixes several crashes seen with SMP PAE HVM RHEL4.2 guests.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
kfraser@localhost.localdomain [Mon, 9 Oct 2006 12:50:00 +0000 (13:50 +0100)]
[XEND] No need to decompress the initrd when building a domain.
The guest OS should be capable of parsing an image file in
whatever format was produced by that OS's tools. Furthermore,
we have seen initrd images with trailing garbage. This causes
us to calculate the wrong size for the uncompressed data and hence
fail to build the guest.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 9 Oct 2006 12:46:34 +0000 (13:46 +0100)]
[PRIVCMD] Fix trivial bug introduced in IOCTL_PRIVCMD_MMAP.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 9 Oct 2006 09:56:17 +0000 (10:56 +0100)]
[LINUX] Various fixes for mmapping I/O and foreign memory pages.
First, auto-translate guests can use remap_pfn_range() rather than
direct_remap_pfn_range(). This actually works better because
remap_pfn_range() can legitimately assert VM_PFNMAP (this patch
removes this flag for direct_remap_pfn_range().
There are various cleanups and fixes to the privcmd interface:
1. VMAs should be searched and used under the mmap semaphore
2. Mapping should be single shot (since cirect_remap_pfn_range()
expects the PTEs to be empty when it is called).
3. Demand-fault population of the privcmd vma should be disallowed.
4. Various others, including a more thorough check of input args.
Signed-off-by: Keir Fraser <keir@xensource.com>
Tim Deegan [Mon, 9 Oct 2006 09:18:11 +0000 (10:18 +0100)]
Since shadow_update_paging_modes() will modify v->arch.hvm_vcpu.hw_cr3,
so we should always do shadow_update_paging_modes() before we writes to
GUEST_CR3 with v->arch.hvm_vcpu.hw_cr3.
Signed-off-by: Xiaohui Xin xiaohui.xin@intel.com
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 8 Oct 2006 17:05:57 +0000 (18:05 +0100)]
[BLKTAP] Remove bogus extra public definition of sig_handler().
Also do not build the daemon -fPIC.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 6 Oct 2006 15:51:10 +0000 (16:51 +0100)]
[BLKTAP] Fix trivial indentation snafu in previous changeset.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 6 Oct 2006 14:05:30 +0000 (15:05 +0100)]
[BLKTAP] Fix crash at start-of-day in blktapctrld
if /local/domain does not exist.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 6 Oct 2006 14:04:42 +0000 (15:04 +0100)]
[BLKTAP] Formatting and style cleanups to blktapctrl.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 6 Oct 2006 10:52:41 +0000 (11:52 +0100)]
[BALLOON] Replace alloc_empty_page_range with new helper alloc_empty_pages_and_pagevec.
This is a better fit with all the callers, who now allocate discontiguous empty pages.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 6 Oct 2006 09:30:43 +0000 (10:30 +0100)]
[BLK] tap: Allocate pages for foreign mappings individually rather than contiguously.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 6 Oct 2006 07:09:52 +0000 (08:09 +0100)]
[HVM][SVM] Revert changeset 11679:
a949bd6ceb85
Although in the correct spirit, it seems there is some other
dependency in the code that assumes ExtInts are queued until
thay can be immediately delivered (EFLAGS.IF==1). This patch
therefore caused instability in Linux guests.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 5 Oct 2006 22:16:21 +0000 (23:16 +0100)]
[TPM] back: Allocate pages for foreign mappings individually rather than contiguously.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 5 Oct 2006 21:49:26 +0000 (22:49 +0100)]
[NET] back: Allocate pages for foreign mappings individually rather than contiguously.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 5 Oct 2006 21:14:39 +0000 (22:14 +0100)]
[NET] back: Remove unused rx_mmap area. Copying happens inside Xen, so
there is no need for a mapping area inside the driver for copying
receive path.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 5 Oct 2006 21:11:24 +0000 (22:11 +0100)]
[BLK] back: Allocate pages for foreign mappings individually rather
than in one large contiguous region.
Signed-off-by: Keir Fraser <keir@xensource.com>
Tim Deegan [Thu, 5 Oct 2006 15:48:28 +0000 (16:48 +0100)]
Merge
kfraser@localhost.localdomain [Thu, 5 Oct 2006 15:42:27 +0000 (16:42 +0100)]
[XEN] Fix memtype accessor domctls.
From: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 5 Oct 2006 15:38:30 +0000 (16:38 +0100)]
[XEN] Change microcode_update function interface inside Xen.
Confine the knowledge that the buffer gets accessed without use of
proper guest handle accessors to a single file.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Thu, 5 Oct 2006 15:36:39 +0000 (16:36 +0100)]
[XEN] Remove unused MULTICALL_arg6, and unnecessary use of STR() macro.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Thu, 5 Oct 2006 15:35:56 +0000 (16:35 +0100)]
Make sure that if one of the intermediate steps fails, a subsequent
make invocation doesn't think there's nothing to do.
This should be viewed as an intermediate step towards splitting up
the rule into three independent ones, passing intermediate files
from one to the next.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Tim Deegan [Thu, 5 Oct 2006 15:21:39 +0000 (16:21 +0100)]
[VMX] Remove vcpu->arch.hvm_vmx.cpu_state
The flags in hvm_vmx.cpu_state were shadows of shadows of bits in
guest CR0_READ_SHADOW, CR4_READ_SHADOW and EFER, and were not being
kept in sync with the other shadows if changes were made while
running under vmxassist. Just use the full shadows of those control
regs instead, and replace cpu_state with a single vmxassist flag.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
kfraser@localhost.localdomain [Thu, 5 Oct 2006 15:17:06 +0000 (16:17 +0100)]
[XM] Fix 'xm help' when called on a command-name prefix.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
kfraser@localhost.localdomain [Thu, 5 Oct 2006 15:14:50 +0000 (16:14 +0100)]
[XEND] Fix pygrub when run server-side on a domain with blktap disks.
For some slightly-crazy reason the blktap patches changed the name
of the SEXPR block containing the disk definition 'vbd' to 'tap', even
though merely changing the 'uname' fragement was sufficient. eg
(vbd (backend 0) (dev hda:disk) (uname file:/xen/rhel4x86_64.img)
(mode w) )
changes to
(tap (backend 0) (dev hda:disk) (uname tap:aio:/xen/rhel4x86_64.img)
(mode w) )
If you create a domain with xm, then xm runs pygrub client side which
works fine. If you create a domain by feeding a block of SEXPR to Xend
over its network port, then pygrub is run server side. The code in
XenD which decides which disk to run pygrub against only looks for
'device/vbd' in the SEXPR so fails to see any blktap disks.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
kfraser@localhost.localdomain [Thu, 5 Oct 2006 15:05:12 +0000 (16:05 +0100)]
[NET] front: Fix size of grant_rx_ref[]. It should use the RX ring
size, rather than the TX ring size.
Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
Christian Limpach [Thu, 5 Oct 2006 13:53:29 +0000 (14:53 +0100)]
[HVM/vncserver] Implement a 'vnclisten' option to limit the interface
that the VNC server from qemu listens on.
Defaults to only listen on 127.0.0.1
The old behaviour (listen on all interfaces) can be restored, by
- changing the system-wide default in /etc/xen/xend-config.sxp by adding:
(vnc-listen '0.0.0.0')
- changing individual domain config files by adding:
vnclisten="0.0.0.0"
Also allows specifying the hostname associated with an interface to limit
to that interface.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Ian Campbell [Thu, 5 Oct 2006 13:07:57 +0000 (14:07 +0100)]
[NET] front: Include linux/moduleparam.h since we use module_param_*
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 5 Oct 2006 11:08:08 +0000 (12:08 +0100)]
[MBOOTPACK] Fix building mbootpack on x86/64.
Signed-off-by: Keir Fraser <keir@xensource.com>
jchesterfield@dhcp92.uk.xensource.com [Thu, 5 Oct 2006 09:55:13 +0000 (10:55 +0100)]
[BLKTAP] Blktapctrl: Add asynchronous watch on dom0 name entry for blktapctrl on startup. This patch cleans up the synchronisation issues between blktapctrl and xend at initialisation if the Dom0 entries have not yet been populated.
Signed-off-by: Julian Chesterfield <julian@xensource.com>
Ian Campbell [Thu, 5 Oct 2006 09:09:25 +0000 (10:09 +0100)]
[NET] front: If the kernel does not include GSO then look for TSO.
This allows us to take advantage of TSO when running as PV-on-HVM on
older kernels.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Ian Campbell [Thu, 5 Oct 2006 09:09:20 +0000 (10:09 +0100)]
[NET] front: Invert the test for a kernel with GSO support.
This simplifies a subsequent patch.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 5 Oct 2006 08:30:07 +0000 (09:30 +0100)]
[LIBXC] Fix ptrace memory-mapping code to map pagetables read-only.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 4 Oct 2006 18:00:11 +0000 (19:00 +0100)]
Remove redundant '&' before array name in __RING_SIZE macro.
Signed-off-by: Richard Miller <9xen@hamnavoe.com>
kfraser@localhost.localdomain [Wed, 4 Oct 2006 17:55:16 +0000 (18:55 +0100)]
[LINUX] Don't bother to write a 5-bit value to a 2-bit field.
From: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 4 Oct 2006 15:12:35 +0000 (16:12 +0100)]
[NET] back: Disable packet queuing when a client has no receive buffers.
This turns out to be dangerous as packets can be queued indefinitely,
introducing resource dependencies between guests (if the queued
packets originate from another virtual machine). For example, this
can prevent interfaces from being torn down and hence defunct
virtual machines from being destroyed.
The queuing functionality is retained as a module option, but a
warning is printed if it is enabled. It is not intended for general use!
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 4 Oct 2006 08:43:45 +0000 (09:43 +0100)]
[IOEMU] When vncunused is specified, allocate a port from 5900
rather than 5898.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 4 Oct 2006 08:42:41 +0000 (09:42 +0100)]
[XEND] If 'vncused' is set, it won't specify an explicit display num to QEMU.
In the current xen-unstable.hg tree tough, XenD will always pass an
explicit '-vnc <display num>' parameter to qemu-dm, regardless of
whether 'vncunused' is set. So the 'vncunused' bit only takes effect
if the explicitly passed display already has something bound to it.
Consider what happens when the host machine has been up for a while -
the Domain ID's start getting very high. This plays havoc with
firewalls - for example an admin may know that only 10 domains will
ever be running at any time, so they should be able to simply open up
ports 5900 -> 5910.
The correct behaviour should be:
- If 'vncdisplay' is set, use that explicit display
- If 'vncunused' is set non-zero, allocate first port about 5900
- Allocate fixed port based on domain-ID
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 4 Oct 2006 08:32:01 +0000 (09:32 +0100)]
[HVMLOADER] Fix SMBIOS table code. One of the string lengths is incorrectly computed.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 4 Oct 2006 08:10:17 +0000 (09:10 +0100)]
[XEN] Never crash machine on int3 traps.
Do not enter debugger on dom0 shutdown unless dom0 crashed.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 3 Oct 2006 10:39:22 +0000 (11:39 +0100)]
[NET] Make MAX_SKBUFF_ORDER page-size independent.
Original patch from Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 3 Oct 2006 10:33:37 +0000 (11:33 +0100)]
[IA64] Fix implicit declaration of initialize_keytable().
Signed-off-by: Aron Griffis <aron@hp.com>
Alastair Tse [Tue, 3 Oct 2006 10:24:48 +0000 (11:24 +0100)]
[XM] Fix rmlabel filename assignment
The patch fixes a bug in the rmlabel tool.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Alastair Tse [Tue, 3 Oct 2006 09:48:07 +0000 (10:48 +0100)]
[XM] Fix missing security check in block-attach
This patch fixes an indentation error in main.py. The effect of this
bug is that block-attach does not check labels if the ACM is
active. This bug slipped in with change set 11572_:_
ad22c711ccb7
<http://xenbits.xensource.com/xen-unstable.hg?cs=
ad22c711ccb7>.
Signed-off by: Reiner Sailer <sailer@us.ibm.com>
kfraser@localhost.localdomain [Mon, 2 Oct 2006 17:04:56 +0000 (18:04 +0100)]
[HVMLOADER] Clean up SMBIOS table-length computations.
It's easier and less prone to error not to attempt the
length computation up front.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 2 Oct 2006 15:12:41 +0000 (16:12 +0100)]
[NET] front: Allow copying receive path to be selected by user at
module load time.
Signed-off-by: Keir Fraser <keir@xensource.com>
Steven Smith [Mon, 2 Oct 2006 12:45:44 +0000 (13:45 +0100)]
[XEN][HVM] Fix a bug which could lead to the guest locking up if it
tried to a backwards memcpy across a page boundary in an MMIO region.
This should fix the problems some people have been reporting running
vim.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Sat, 30 Sep 2006 10:35:02 +0000 (11:35 +0100)]
[HVM][TOOLS] Improve warnign message when trying to create
an HVM guest on a non-capable platform.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 30 Sep 2006 10:30:09 +0000 (11:30 +0100)]
[HVM] Mov to/from CR8 must be gated on whether VLAPIC device is created.
If APIC=0 in VMX configuration file, VLAPIC(v) in
mov_from_cr()/mov_to_cr() will be NULL, so calling
vlapic_get_reg()/vlapic_set_reg()/vlapic_update_ppr()
would crash Xen.
Original patch from Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 30 Sep 2006 10:11:54 +0000 (11:11 +0100)]
[HVM] Add RDMSR/WRMSR instruction emulation to VMXAssist decoder
AP of PAE SMP windows will use it to set NX bit in EFER.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 30 Sep 2006 10:08:41 +0000 (11:08 +0100)]
[HVM] Add sub instruction support to HVM MMIO decoder.
This is needed for SMP PAE windows XP SP2.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 30 Sep 2006 09:49:08 +0000 (10:49 +0100)]
[HVM][SVM] Do not delay ExtInt event injection if RFLAGS.IF==0.
AMD-V does not require the delaying of interrupt injection if the guest
IF_FLAG disallows interrupts. Remove the code in svm_intr_assist()
that was checking the guest IF in eflags.
This patch fixes the problem with HVM Windows guests, with observing a
very slow timer countdown on the initial boot menu, when there is more
than one boot option. Kbd response in this same Windows boot menu is
also acceptably responsive with this patch.
Signed-off-by: Tom Woller <thomas.woller@amd.com>=20
kfraser@localhost.localdomain [Fri, 29 Sep 2006 18:12:15 +0000 (19:12 +0100)]
[NET] back: Loopback must copy foreign mappings.
Signed-off-by: Keir Fraser <keir@xensource.com>
Steven Smith [Fri, 29 Sep 2006 14:40:35 +0000 (15:40 +0100)]
Merge.
Steven Smith [Fri, 29 Sep 2006 14:40:19 +0000 (15:40 +0100)]
[XEN][HVM] Arrange that we only consider sending a PV-on-HVM event channel
callback interrupt in vcpu 0. This avoids a race in SMP HVM domains
which could lead to interrupts never getting delivered. It is safe
because HVM domains always bind their event channels to vcpu 0.
Bug pointed out by Keir.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
kfraser@localhost.localdomain [Fri, 29 Sep 2006 13:55:57 +0000 (14:55 +0100)]
[BLKTAP] Find major number by searching sysfs
instead of reading /proc/devices.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Steven Smith [Fri, 29 Sep 2006 13:42:49 +0000 (14:42 +0100)]
Merge.
Steven Smith [Fri, 29 Sep 2006 13:42:04 +0000 (14:42 +0100)]
[XEN][HVM] Make sure that the interrupt which event channel events come in
on is level triggered rather than edge triggered, since it's a PCI device.
This is complicated by the possibility that another PCI device could be
on the same interrupt; the workaround is to have two irr registers
for the PIC and APIC, and have qemu and Xen generated interrupts go
into different ones.
This broke the alt_irq stuff. Fortunately, nobody uses that anymore, so
I've removed it.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
kfraser@localhost.localdomain [Fri, 29 Sep 2006 13:20:52 +0000 (14:20 +0100)]
[LINUX] Make evtchn device use a dynamic minor number.
Also update the code in tools to create the device node if udev fails.
The tools now read the sysfs system to find the minor number needed.
Original patch from Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Tim Deegan [Fri, 29 Sep 2006 10:57:06 +0000 (11:57 +0100)]
[XEN] Recompute shadows of PAE PSE l2es when needed.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
kfraser@localhost.localdomain [Fri, 29 Sep 2006 10:50:51 +0000 (11:50 +0100)]
[HVM][SVM] Obtaining instruction address needs to mask to 32 bits
if not running in 64-bit mode.
Signed-off-by: Keir Fraser <keir@xensource.com>
Alastair Tse [Fri, 29 Sep 2006 10:25:25 +0000 (11:25 +0100)]
[TOOLS] Fix xendomains init.d script DOG PIG confusion.
Fix typos in xendomains where we actually mean WDOG_PID.
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=754
Signed-off-by: Alastair Tse <atse@xensource.com>
kfraser@localhost.localdomain [Fri, 29 Sep 2006 10:28:04 +0000 (11:28 +0100)]
[HVM] Disable VMX/SVM on auxiliary processors when shutting down an SMP system.
With Intel VT, VMXOFF needs to be executed before halting the
CPU. Without this fix Xen or Linux is unable to start up the CPU after
a kexec reboot.
Tested using x86_32 on a Pentium D 930.
Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
kfraser@localhost.localdomain [Fri, 29 Sep 2006 10:26:33 +0000 (11:26 +0100)]
[HVM][VMX] Clear vmxe when VMX is not enabled.
The current Xen code keeps X86_CR4_VMXE set even if VMXON has not been
executed. The stop_vmx() code assumes that it is possible to call
VMXOFF if X86_CR4_VMXE is set which is not always true. Calling VMXOFF
without VMXON results in an illegal opcode trap, and to avoid this condition
this patch makes sure that X86_CR4_VMXE is only set when VMXON has
been called.
Tested using x86_32 on a Pentium D 930.
Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
kfraser@localhost.localdomain [Fri, 29 Sep 2006 10:22:24 +0000 (11:22 +0100)]
[PYGRUB] Enable showing the cursor in pygrub when it's relevant to do so.
Signed-off-by: Jeremy Katz <katzj@redhat.com>
kfraser@localhost.localdomain [Fri, 29 Sep 2006 10:21:02 +0000 (11:21 +0100)]
[HVM][SVM] 64-bit Windows HVM guests require MCE/MCA CPUID bits to be present.
This SVM patch removes "masking off" of these bits for AMD-V HVM guests.
Signed-off-by: Tom Woller <thomas.woller@amd.com>=20